<p>forms works!</p>
<input type="text" name="username" id="username" [(ngModel)]="userInfo.username">
<input type="radio" value="1" name="sex" id="nan" [(ngModel)]="userInfo.sex"> <label for="nan">男</label>
<input type="radio" value="2" name="sex" id="nv" [(ngModel)]="userInfo.sex"> <label for="nv">女</label>
<select name=city [(ngModel)]="userInfo.city">
    <option  *ngFor="let item of cities" [value]="item" >{{item}}</option>
</select>
<span *ngFor="let item of userInfo.hobby">
    <input type="checkbox" [id]="item.title" [(ngModel)]="item.checked"> <label [for]="item.title">{{item.title}}</label>
</span>
<textarea row="10" [(ngModel)]="userInfo.mark"></textarea>
<button (click)="doSubmit()">提交</button>
<div>{{userInfo|json}}</div>